package spring.service;

import spring.annotate.Bean;
import spring.annotate.Di;
import spring.dao.UserDao;

@Bean
public class UserServiceImpl implements UserService{
    @Di
    private UserDao userDao;

    @Override
    public void add() {
        System.out.println("service");
        userDao.add();
    }
}
